﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000351 RID: 849
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ContentPackageGetDataScRsp : IMessage<ContentPackageGetDataScRsp>, IMessage, IEquatable<ContentPackageGetDataScRsp>, IDeepCloneable<ContentPackageGetDataScRsp>, IBufferMessage
	{
		// Token: 0x17000B08 RID: 2824
		// (get) Token: 0x0600262D RID: 9773 RVA: 0x0006B537 File Offset: 0x00069737
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ContentPackageGetDataScRsp> Parser
		{
			get
			{
				return ContentPackageGetDataScRsp._parser;
			}
		}

		// Token: 0x17000B09 RID: 2825
		// (get) Token: 0x0600262E RID: 9774 RVA: 0x0006B53E File Offset: 0x0006973E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ContentPackageGetDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B0A RID: 2826
		// (get) Token: 0x0600262F RID: 9775 RVA: 0x0006B550 File Offset: 0x00069750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ContentPackageGetDataScRsp.Descriptor;
			}
		}

		// Token: 0x06002630 RID: 9776 RVA: 0x0006B557 File Offset: 0x00069757
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageGetDataScRsp()
		{
		}

		// Token: 0x06002631 RID: 9777 RVA: 0x0006B560 File Offset: 0x00069760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageGetDataScRsp(ContentPackageGetDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.data_ = ((other.data_ != null) ? other.data_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002632 RID: 9778 RVA: 0x0006B5AC File Offset: 0x000697AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageGetDataScRsp Clone()
		{
			return new ContentPackageGetDataScRsp(this);
		}

		// Token: 0x17000B0B RID: 2827
		// (get) Token: 0x06002633 RID: 9779 RVA: 0x0006B5B4 File Offset: 0x000697B4
		// (set) Token: 0x06002634 RID: 9780 RVA: 0x0006B5BC File Offset: 0x000697BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000B0C RID: 2828
		// (get) Token: 0x06002635 RID: 9781 RVA: 0x0006B5C5 File Offset: 0x000697C5
		// (set) Token: 0x06002636 RID: 9782 RVA: 0x0006B5CD File Offset: 0x000697CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageData Data
		{
			get
			{
				return this.data_;
			}
			set
			{
				this.data_ = value;
			}
		}

		// Token: 0x06002637 RID: 9783 RVA: 0x0006B5D6 File Offset: 0x000697D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ContentPackageGetDataScRsp);
		}

		// Token: 0x06002638 RID: 9784 RVA: 0x0006B5E4 File Offset: 0x000697E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ContentPackageGetDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Data, other.Data) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002639 RID: 9785 RVA: 0x0006B634 File Offset: 0x00069834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.data_ != null)
			{
				num ^= this.Data.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600263A RID: 9786 RVA: 0x0006B689 File Offset: 0x00069889
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600263B RID: 9787 RVA: 0x0006B691 File Offset: 0x00069891
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600263C RID: 9788 RVA: 0x0006B69C File Offset: 0x0006989C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.data_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Data);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600263D RID: 9789 RVA: 0x0006B6F8 File Offset: 0x000698F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.data_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Data);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600263E RID: 9790 RVA: 0x0006B750 File Offset: 0x00069950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ContentPackageGetDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.data_ != null)
			{
				if (this.data_ == null)
				{
					this.Data = new ContentPackageData();
				}
				this.Data.MergeFrom(other.Data);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600263F RID: 9791 RVA: 0x0006B7B8 File Offset: 0x000699B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002640 RID: 9792 RVA: 0x0006B7C4 File Offset: 0x000699C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 66U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.data_ == null)
						{
							this.Data = new ContentPackageData();
						}
						input.ReadMessage(this.Data);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000F59 RID: 3929
		private static readonly MessageParser<ContentPackageGetDataScRsp> _parser = new MessageParser<ContentPackageGetDataScRsp>(() => new ContentPackageGetDataScRsp());

		// Token: 0x04000F5A RID: 3930
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F5B RID: 3931
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04000F5C RID: 3932
		private uint retcode_;

		// Token: 0x04000F5D RID: 3933
		public const int DataFieldNumber = 8;

		// Token: 0x04000F5E RID: 3934
		private ContentPackageData data_;
	}
}
